package com.gof.example.mediator;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/11 08:24.
 * haiming.fei@tongdun.cn
 */
public abstract class Pannel {

    private Mediator mediator;

    public Pannel() {
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    abstract void resize();

    public void change() {
        mediator.pannelChanged(this);
    }
}
